"""
    用于获取登录后的令牌数据
"""
import requests

from config import BASE_URL


def get_header():
    login_url = BASE_URL + "login"
    data = {
    "username": "fhj",
    "password": "123456"
    }
    resp = requests.post(url=login_url, json=data)
    jwt= resp.json().get('data')
    header = {"token":jwt}
    return header

if __name__ == '__main__':
    print(get_header())